package crmsystem.com.service.impl;

import crmsystem.com.utils.Query;
import crmsystem.com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import crmsystem.com.dao.ProductsaledataDao;
import crmsystem.com.entity.ProductsaledataEntity;
import crmsystem.com.service.ProductsaledataService;


@Service("productsaledataService")
public class ProductsaledataServiceImpl extends ServiceImpl<ProductsaledataDao, ProductsaledataEntity> implements ProductsaledataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProductsaledataEntity> page = this.page(
                new Query<ProductsaledataEntity>().getPage(params),
                new QueryWrapper<ProductsaledataEntity>()
        );

        return new PageUtils(page);
    }

}